package com.coocaa.ops.plus.dashboard.v1.aiposter.ftl;

import com.coocaa.ops.plus.core.base.BaseFtlAction;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * @author bijiahao
 * @description
 * @date 2020/4/21 16:42
 */
@Controller
@RequestMapping("/myExtend")
public class AiPosterFtlAction extends BaseFtlAction {

    @RequestMapping(value = "/posterTextDetectView")
    public ModelAndView posterTextDetectView(HttpServletRequest request) throws Exception {
        Map<String, Object> map = new HashMap<String, Object>(0);
        return renderView(request, "aiPoster/posterTextDetectView", map);
    }

    @RequestMapping(value = "/posterDrawContourView")
    public ModelAndView drawContourView(HttpServletRequest request) throws Exception {
        Map<String, Object> map = new HashMap<String, Object>(0);
        return renderView(request, "aiPoster/posterDrawContourView", map);
    }

    @RequestMapping(value = "/posterSimilarityView")
    public ModelAndView posterSimilarityView(HttpServletRequest request) throws Exception {
        Map<String, Object> map = new HashMap<String, Object>(0);
        return renderView(request, "aiPoster/posterSimilarityView", map);
    }


    @RequestMapping(value = "/posterMergeView")
    public ModelAndView posterMergeView(HttpServletRequest request) throws Exception {
        Map<String, Object> map = new HashMap<String, Object>(1);
        return renderView(request, "aiPoster/posterMergeView", map);
    }


    @RequestMapping(value = "/posterColorView")
    public ModelAndView posterColorView(HttpServletRequest request) throws Exception {
        Map<String, Object> map = new HashMap<String, Object>(1);
        return renderView(request, "aiPoster/posterColorView", map);
    }
}
